﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExamCommon
{
    [Serializable]
    public class LoginDTO
    {
        /// <summary>
        /// 学号
        /// </summary>
        public string studentNo { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// ip地址, 目前仅支持ipv4
        /// </summary>
        public string ipAddress { get; set; }

        /// <summary>
        /// 端口号,范围从0号端口到65535号
        /// </summary>
        public int port { get; set; }

        public void assignLoginDTO(LoginDTO dto)
        {
            this.studentNo = dto.studentNo;
            this.ipAddress = dto.ipAddress;
            this.name = dto.name;
            this.port = dto.port;
        }
    }
}
